package com.lyrcsoft.mapstruct;

import com.lyrcsoft.mapstruct.cmd.UserRequest;
import com.lyrcsoft.mapstruct.convert.UserConvert;
import com.lyrcsoft.mapstruct.vo.UserVo;

/**
 * @author fujc2dev@126.com
 * @version 1.0
 * @date 2025/9/19 10:55
 */
public class UserBOTest {
    public static void main(String[] args) {
        // 创建 UserDO 对象
        UserVo userDO = new UserVo()
                .setId(1).setUsername("yudaoyuanma").setPassword("buzhidao");
        // <X> 进行转换
        UserRequest userBO = UserConvert.INSTANCE.convert(userDO);
        System.out.println(userBO.getId());
        System.out.println(userBO.getUsername());
        System.out.println(userBO.getPassword());
    }
}
